package com.dylon.system.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

@Data
public class SysDepartment extends BaseEntity {
    private static final long serialVersionUID = 1L;

    private Long    deptId;
    private Long    parentId;  //'父部门',
    private String  path;  //'结构路径',
    private String  deptName; //'部门名称',
    private Integer orderNum; //'显示顺序',
    private String  leader;   //'负责人',
    private String  phone;  //'联系电话',
    private String  email;  //'联系邮箱',
    private String  status; //'状态，0正常，1禁用',

    private String  parentName; //父节点名称

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("deptId", getDeptId())
                .append("parentId", getParentId())
                .append("path", getPath())
                .append("deptName", getDeptName())
                .append("orderNum", getOrderNum())
                .append("leader", getLeader())
                .append("phone", getPhone())
                .append("email", getEmail())
                .append("status", getStatus())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
